<?php
class EmailSendlistDao {
	public function addArray($data){
		ClassManager::getSql()->insertArray('email_sendlist', array('email','title','content','time'), $data);
	}
	public function getEmailList($limit){
		return ClassManager::getSql()->datalist('email_sendlist',"*","where status=0 order by id ",$limit);
	}
	public function update($data,$id){
		ClassManager::getSql()->updates('email_sendlist', $data , "where id=".$id);
	}
}

?>